
package cn.webrx;


public class T2 {
    public static void main(String[] args) {
        //浮点数 float double
        //float f1 = (float).5;
        float f1 = .5f;
        //float f1 = .5; 错误的，默认写的小数是double

        //double d1 = .5;
        double d1 = .5D;

        //long n1 = 234234242432342343; 错误
        int n1 = (int) 234234242432342343L;
        System.out.println(n1);
        long n2 = 234234242432342343L;
        System.out.println(n2);
    }
}
